.checkbox-custom,
.radio-custom {
  position: relative;
  display: inline-block;
  //margin-bottom: 10px;
  padding-left: 20px;
  height: 20px;
  line-height: 20px;

  input[type="checkbox"],
  input[type="radio"] {
    position: absolute;
    z-index: 1;
    opacity: 0;
    width: 20px;
    height: 20px;
    margin: 0 0 0 -20px;
  }

  label {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    height: 20px;
    padding-left: 10px;

    line-height: 20px;
    font-weight: 300;

    cursor: pointer;

    &::before {
      content: "";
      display: inline-block;
      position: absolute;
      left: 0;
      top: 0;

      margin-left: -20px;
      width: 20px;
      height: 20px;

      border: 1px solid #CCCCCC;
      border-radius: 3px;
      background-color: #fff;

      @include transition(all .1s ease-in-out 0s);
    }

    &::after {
      display: inline-block;
      position: absolute;
    }
  }
}

.checkbox-custom {
  label {
    &::before {
      border-radius: 3px;
    }
  }

  input[type="checkbox"]:checked,
  input[type="checkbox"]:checked + input{
    & + label{
      &::before {
        background: $brand-primary;
        border-color: $brand-primary;
      }
      &::after {
        width: 20px;
        height: 20px;
        line-height: 20px;
        left: 0;
        top: 0;
        margin-left: -20px;
        text-align: center;
        font-size: 12px;
        color: #FFFFFF;
        font-family: $ionicons-font-family;
        content: $ionicon-var-checkmark;
      }
    }
  }
}

.radio-custom {
  label {
    &::before {
      border-radius: 20px;
    }
  }

  input[type="radio"]:checked {
    & + label {
      &::before {
        background: $brand-primary;
        border-color: $brand-primary;
      }
      &::after {
        content: '';
        display: inline-block;
        position: absolute;
        width: 6px;
        height: 6px;
        left: 7px;
        top: 7px;
        margin-left: -20px;

        border: 2px solid #FFFFFF;
        border-radius: 6px;
      }
    }
  }
}

.sort{
  .sort-field{
    cursor: pointer;
  }
  .sort-arrow{
    position: relative;
    display: inline-block;
    vertical-align: middle;
    height: 20px;
    margin: 0 10px;
    .up{
      position: absolute;
      top: 0;
      
      display: inline-block;
      height: 0;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      border-bottom: 8px solid #ddd;
      
      cursor: pointer;
    }
    
    .down{
      position: absolute;
      bottom: 0;
      
      display: inline-block;
      height: 0;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      border-top: 8px solid #ddd;
      
      cursor: pointer;
    }
    
    &.asc{
      .up{
        border-bottom: 8px solid #555;
      }
      .down{
          border-top: 8px solid #ddd;
      }
    }
    
    &.desc{
      .up{
        border-bottom: 8px solid #ddd;
      }
      .down{
          border-top: 8px solid #555;
      }
    }
  }
}


label{
    &.required{
        &:after{
            content: '*';
            color: $brand-danger;
            margin-left: 5px;
        }
    }
}

textarea{
  resize: none;
}


.file-selected{
    table{
        width: 100%; 
    }
    >tbody>tr.new{
       background: $brand-default;
    }
    >tbody>tr>td{
        padding: 10px;
     }
    .fileimg{
        width: 20%;
        
        img{
            width: 80%;
        }
    }
    .filename{
        width: 50%;
    }
       
}


